// responseJson
package componnet

import (
	"time"
)

type ResponsJson struct {
	State int
	//Resp    map[string]map[string]string
	Resp    interface{}
	ResTime int64
}

func (resj *ResponsJson) SetState(state int) {
	resj.State = state
	resj.ResTime = time.Now().Unix()
}

func (resj *ResponsJson) SetDataStruct(v interface{}) {
	resj.Resp = v
}

func (resj *ResponsJson) SetDataMap(data map[string]map[string]string) {
	resj.Resp = data
}
